package 责任链模式;

/**
 *
 */
public abstract class AbstractHandler {

    protected int level;

    protected AbstractHandler nextHandler;

    public void setLevel(int level) {
        this.level = level;
    }

    public void setNextHandler(AbstractHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void execute(int level);
}
